home *** CD-ROM | disk | FTP | other *** search
- #define MAXERR 5
- #define READBUFFSIZE 512
- #define WRITEBUFFSIZE 512
- #define LINESIZE 80
-
- typedef struct {
- OsType fType;
- } ASCIIPref, *ASCIIPrefPtr, **ASCIIPrefHandle;
-
- typedef struct {
- SSaverRec SSR;
- FileParam FP;
- IOParam DIOP;
- IOParam MIOPin;
- IOParam MIOPout;
- Str255 fName;
- ASCIIPref thePrefs;
- unsigned char theData[1024];
- int errCount; /* total number of errors */
- int errFatal; /* non-Mac OS error that aborted the transfer */
- int errList[3]; /* list of the three last errors */
- int rBPos; /* position to get next byte from (File) */
- int rBValid; /* bytes valid in the read buffer (File) */
- unsigned char lastC; /* last character read from file during send */
- int rbPos; /* position to get next byte from */
- int rbValid; /* number of bytes valid in the read buffer */
- int wbPosA; /* position to place next byte, -1 if writing */
- int wbPosB; /* position to place next byte, -1 if writing */
- unsigned char readBuffer[READBUFFSIZE];
- unsigned char writeBuffA[WRITEBUFFSIZE];
- unsigned char writeBuffB[WRITEBUFFSIZE];
- unsigned char lineBuffer[LINESIZE+1];
- unsigned char lineExtra[LINESIZE+1];
- } ProtoGloRec, *ProtoGloPtr, **ProtoGloHand;
-
- #define TIMEOUT -1
- #define TOOMANYERR -2
- #define CANCELED -3
- #define NOTTEXT -4
- #define NOCONTINUE -5
- #define ABORT 0x0B
- #define FINISHED 0x04
- #define PAUSE(a) (a == 0x10)
- #define CONTINUE(a) (a == ' ')
-